<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<c:choose>
<c:when test="${!empty activityList && fn:length(activityList) ne 0}">
<div class="article">
	<h2>推荐活动 <a href="<%=path %>/check/activity/toInsert" class="ml10 c_f60 f18">发布活动</a></h2>
	<ul class="topic-feed-list clearfix">
		<c:forEach var="activity" items="${activityList}" varStatus="index">
		<li>
			<a href="<%=path %>/uncheck/activity/view/${activity.activityId}" target="_blank" title="${activity.activityName}">
				<img src="<%=path%>/uncheck/pictures/servlet?id=${activity.activityPicture}" >
				<p>
					<fns:encodes type="5" value="${activity.activityName}"></fns:encodes> 
				</p>
				<div class="time">
					<div class="author clearfix">
						<!-- <img src="http://7lrzbv.com2.z0.glb.qiniucdn.com/de00396d-70a4-43e3-8d19-33345504cd5f" alt="" class="header"> -->			
						<div class="name pull-left f12">
							${activity.activityOrganizers}
						</div>
						<div class="f12 pull-right">
							<span class="sym sym-time"></span>
							<fmt:formatDate value="${activity.activityBeginTime}" pattern="MM-dd HH:mm"/>
						</div>
					</div>					
				</div>
				<div class="tpft clearfix">
					<c:choose>
					<c:when test="${activity.activityType==1}">
						<span class="label label-info pull-left">线下活动</span>
						<div class="pull-left ml5 txtaddr">
						${activity.activityProvince}${activity.activityCity}${activity.activityAddress}</div>
					</c:when>
					<c:when test="${activity.activityType==2}">
						<span class="label label-info pull-left">线上直播</span>
						<div class="pull-left ml5 txtaddr">
							<a href="${activity.activityUrl}">${activity.activityUrl}</a>
						</div></c:when>
					</c:choose>
				</div>
			</a>
		</li>
		</c:forEach>
	</ul>
</div>
<!-- 分页 -->
<p:pagination pageNo="${queryMap.pageNo}" pageCount="${queryMap.pageCount}" queryFunction="queryActivityList" style="text-center"></p:pagination>
<!-- 分页 end -->
</c:when>
<c:otherwise>
	<div class="article">
	<h2>推荐活动 <a href="<%=path %>/check/activity/toInsert" class="ml10 c_f60 f18">发布活动</a></h2>
	<ul class="topic-feed-list clearfix">
		<li>
			暂无数据
		</li>
	</ul>
</div>
</c:otherwise>
</c:choose>